document.onreadystatechange = function () {
	if (document.readyState === "complete") {
		var boxs, elClassList, boxData, isBoxStr
		boxs = document.querySelectorAll("[class*='jbox']")
		boxData = {
			width : 0,
			height : 0
		}
		
		for(var i = 0; i<boxs.length; i++) {
			console.log(boxs.length, boxs[i].classList)

			elClassList = boxs[i].classList
			
			for(var j = 0; j<elClassList.length; j++){
				isBoxStr = elClassList[j].indexOf('jbox')
				if( isBoxStr !== -1){
					var cache = elClassList[j].split('-')
					boxData.width = cache[1];
					boxData.height = cache[2];
				}

			}
			
			boxs[i].style.width = boxData.width + 'px';
			boxs[i].style.height = boxData.height + 'px';
		}
	}
}